commit | e7d392585e7ee43e5f74262d5d63de290e26a5d7 | [log] [tgz] |
---|---|---|
author | Marshall Clow <mclow.lists@gmail.com> | Wed Feb 11 15:48:21 2015 |
committer | Marshall Clow <mclow.lists@gmail.com> | Wed Feb 11 15:48:21 2015 |
tree | b325e113bdd1a367434e9fd24e7a20c135b861bb | |
parent | 3024f86865cc74449d0fc35466d24bee6d2ca605 [diff] |
Need to wrap a bit in an ifdef, since there are no initializer_lists in C++03 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@228840 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp b/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp index beae3b6..a66b2ff 100644 --- a/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp +++ b/test/std/algorithms/alg.sorting/alg.min.max/minmax_init_list_comp.pass.cpp
@@ -23,6 +23,7 @@ bool all_equal(int a, int b) { return false; } // everything is equal +#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS void test_all_equal(std::initializer_list<int> il) { binary_counting_predicate<bool(*)(int, int), int, int> pred (all_equal); @@ -32,6 +33,7 @@ assert(p.second == *--ptr); assert(pred.count() <= ((3 * il.size()) / 2)); } +#endif int main() {